package com.boco.wmworkflow.base;

import javax.servlet.http.*;

import com.boco.webmaster.base.*;
import org.apache.struts.action.*;
import com.boco.transnms.common.dto.workflow.WfWorkList;

public class WfBasicForm extends WMValidatorActionForm{
    private String processId;
    private String packageId;
    private int processType;
    private String processKey;
    private String activityKey;
    private String activityId;
    private String actionName;
    private String activityName;
    private String userName;
    private String processName;
    private int workflowState;

    public WfBasicForm() {
    }

    public WfBasicForm(WfWorkList worklist) {
        this.processKey = worklist.getProcessKey();
        this.processName = worklist.getProcessName();
        this.processType = worklist.getProcessType();
        this.actionName = worklist.getActionName();
        this.activityId = worklist.getActivityId();
        this.activityKey = worklist.getActivityKey();
        this.activityName = worklist.getActivityName();
        this.userName = worklist.getUserName();
        this.workflowState = worklist.getWorkflowState();
    }

    public void setProcessKey(String processKey) {
        this.processKey = processKey;
    }

    public void setActivityKey(String activityKey) {
        this.activityKey = activityKey;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public void setProcessType(int processType) {
        this.processType = processType;
    }

    public void setActionName(String actionName) {
        this.actionName = actionName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public void setWorkflowState(int workflowState) {
        this.workflowState = workflowState;
    }

    public void setPackageId(String packageId) {
        this.packageId = packageId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getProcessKey() {
        return processKey;
    }

    public String getActivityKey() {
        return activityKey;
    }

    public String getActivityId() {
        return activityId;
    }

    public int getProcessType() {
        return processType;
    }

    public String getActionName() {
        return actionName;
    }

    public String getActivityName() {
        return activityName;
    }

    public String getUserName() {
        return userName;
    }

    public String getProcessName() {
        return processName;
    }

    public int getWorkflowState() {
        return workflowState;
    }

    public String getPackageId() {
        return packageId;
    }

    public String getProcessId() {
        return processId;
    }

    public void formValidate(ActionErrors errors, ActionMapping mapping,
                                     HttpServletRequest request){

    }
}
